<template>
  <div class="card content-box">
    <span class="text" @click="jump">我是menu2-2 点我跳转menu2-3🍓🍇🍈🍉</span>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import {useCounterStore} from "@/store/counter";
import router from "@/router";
const value = ref("");

const route = useRoute();
const store = useCounterStore();
store.setTabsTitle(`No.${route.params.id} - ${route.meta.title}`);
const jump = ()=>{
  router.push({path:`/menu/menu2/menu21/menu22/menu23/${parseInt(10 + (20 - 10+1) * (Math.random()))}`})
}
</script>

<style scoped lang="scss">
@import "./index.scss";
</style>
